<template>
  <div class="label-wrapper">
    <div class="label" :style="customStyle">{{ label }}: </div>
    <div class="value" :style="customStyleVal">{{ value ? value : '暂无' }}</div>
  </div>
</template>
<script>
  export default {
    name: 'Label',
    props: {
      label: {
        type: String,
        default: '',
      },
      value: {
        type: String,
        default: ''
      },
      customStyle: {
        type: Object,
        default: function () {
          return {
            width: '80px',
            color: '#000',
            'font-size': '14px'
          }
        }
      },
      customStyleVal: {
        type: Object,
        default: function () {
          return {
            color: '#000',
            'font-size': '14px'
          }
        }
      }
    },
  }
</script>
<style scoped>
  .label-wrapper {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    /* justify-content: center; */
  }
  .label {
    text-align: right;
    padding-right: 10px;
  }
  .value {
    text-align: left;
  }
</style>